package com.yzd.learnjava.enumerated;

import com.yzd.learnjava.util.Print;

public enum SpaceShip {
	SCOUNT, CARGO, TRANSPORT, CRUISER, BATTLESHIP, MOTHERSGIP;
	
	public String toString() {
		String idString = name();
		String lower = idString.substring(1).toLowerCase();
		return idString.charAt(0) + lower;
	}
	
	public static void main(String[] args) {
		for(SpaceShip ss : SpaceShip.values()) {
			Print.print(ss);
		}
	}
}
